<template>
	<view>
		<u-navbar :is-back="true" :is-fixed="true" title="产品编辑"></u-navbar>
		<scroll-view scroll-y scroll-with-animation style="height: calc(100vh - 110px);" :show-scrollbar="false">
			<view style=" background-color:#EFEDE9;">
				<view class="pl-2 pr-2 font-14 lineHight-40 font-weight-bold">服务信息</view>
			</view>
			<u-form :model="form">
				<u-form-item :label-style="labelStyle" label="产品/服务名称" prop="name">
					<u-input class="mr-3 " v-model="form.name" input-align="right" />
				</u-form-item>
				
				<u-form-item :label-style="labelStyle" label="服务商名称" prop="name">
					<u-input class="mr-3 " v-model="form.name" input-align="right" />
				</u-form-item>
				<u-form-item :label-style="labelStyle" label="服务介绍" prop="name">
					<u-input class="mr-3 " v-model="form.name" input-align="right" />
				</u-form-item>
				<u-form-item :label-style="labelStyle" label="服务价格" prop="name">
					<u-input class="mr-3 " v-model="form.name" input-align="right" />
				</u-form-item>
				<u-form-item :label-style="labelStyle" label="服务流程" prop="name">
					<u-input class="mr-3 " v-model="form.name" input-align="right" />
				</u-form-item>
				<u-form-item :label-style="labelStyle" label="售后服务" prop="name">
					<u-input class="mr-3 " v-model="form.name" input-align="right" />
				</u-form-item>
				<view style=" background-color:#EFEDE9;">
					<view class="pl-2 pr-2 font-14 lineHight-40 font-weight-bold">上/下架状态</view>
				</view>
				<u-form-item style="padding-right: 10px;" :label-style="labelStyle" label="上/下架状态" prop="name">
					<u-input v-model="valueList" :type="type" input-align="right" :border="false"
						@click="showList = true" />
					<u-action-sheet :list="actionSheetList" v-model="showList"
						@click="actionSheetCallback"></u-action-sheet>
				</u-form-item>
			</u-form>
			<ferrButton title="产品编辑" @click="click()"></ferrButton>
		</scroll-view>
	</view>
</template>

<script>
	import ferrButton from "@/components/free-ui/ferr-button.vue";
	import calendar from "@/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue"
	export default {
		components: {
			ferrButton,
			calendar
		},

		data() {
			return {
				form: {
					name: '',
					intro: ''
				},
				value: '',
				valueList: '',
				type: 'select',
				showList: false,
				border: true,
				labelStyle: {
					paddingLeft: '13px',
					width: '130px'
				},
				actionSheetList: [{
						text: '男'
					},
					{
						text: '女'
					},
					{
						text: '保密'
					}
				],
			}
		},
		methods: {
			actionSheetCallback(index) {
				this.valueList = this.actionSheetList[index].text;
			}
		}
	}
</script>

<style>
</style>